package com.silence.gankio.sp

class SplashSP: SPUtil(SP_NAME){

    companion object {
        const val SP_NAME = "splash_info"
        const val KEY_IMAGE_URL = "splash_image"

        val INSTANCE = SplashSP()
    }

    fun setImageUrl(url: String) {
        setValue(KEY_IMAGE_URL, url)
    }

    fun getImageUrl(): String {
        return getValue(KEY_IMAGE_URL, "https://ws1.sinaimg.cn/large/0065oQSqgy1fy58bi1wlgj30sg10hguu.jpg") ?: "https://ws1.sinaimg.cn/large/0065oQSqgy1fy58bi1wlgj30sg10hguu.jpg"
    }



}